//
//  ZYDefine.swift
//  SmartCharging
//
//  Created by andylau on 16/6/6.
//  Copyright © 2016年 sherry. All rights reserved.
//

import UIKit

/**
 * 服务器请求地址
 */
//let baseUrl = ""

let SCREEN_WIDTH = UIScreen.main.bounds.size.width
let SCREEN_HEIGHT = UIScreen.main.bounds.size.height

let iPhone_W320 = (SCREEN_WIDTH == 320) ? true : false
let iOS_X = (SCREEN_HEIGHT == 812) ? true : false
let NAV_HEIGHT = (SCREEN_HEIGHT == 812.0 ? 88 : 64)

let IS_IPHONE = (UI_USER_INTERFACE_IDIOM() == .phone)
let IS_IPAD = (UI_USER_INTERFACE_IDIOM() == .pad)


func RGBA (r:CGFloat, g:CGFloat, b:CGFloat, a:CGFloat) -> UIColor {
    return UIColor (red: r/255.0, green: g/255.0, blue: b/255.0, alpha: a)
}

